# -*- coding: utf-8 -*-
from django import forms
from lr.work.models import Genre


class NewWorkForm(forms.Form):
    """ Новая работа """
    genre = forms.ModelChoiceField(queryset=Genre.objects.all(), empty_label=u'Не определен', required=False, label=u'Жанр')
    title = forms.CharField(max_length=127, widget=forms.TextInput, label=u'Название произведения')
    page_title = forms.CharField(max_length=127, widget=forms.TextInput, required=False, label=u'Название главы')
        